package com.lijz.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

@Configuration
//引用配置文件，资源注入
//@PropertySources("")
public class CommonConfig {

	@Bean
	public ThreadPoolExecutor threadPoolExecutor() {
		return (ThreadPoolExecutor) Executors.newFixedThreadPool(10);
	}
}
